home *** CD-ROM | disk | FTP | other *** search
Text File | 1989-10-25 | 671 b | 28 lines | [TEXT/GEOL] |
- Item 3579795 25-Oct-89 17:53
-
- From: SHEBANOW1 Shebanow, Andrew
-
- To: MACAPP.TECH$ MACAPP Tech
-
- Sub: Re- Linking C++
-
- Attn: MacApp.Tech$
- SentBy: Andrew Shebanow
- Reply to: Re: Linking C++
- When you give your C function a prototype, you need to use the typesafe
- linkage syntax to tell C++ that the function doesn't have a C++ encoded name,
- like this:
-
- extern "C" {
- void get_Directory(short, unsigned char*,
- unsigned char*, unsigned char***[256])
- // I used the unmangle tool to get the params
- };
-
- Have fun,
-
- Andy Shebanow
- MacDTS
-
-
-